﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using ZDSoft.UPMS.Model.SystemPart;

namespace ZDSoft.UPMS.Model.BusinessPart
{
    /// <summary>
    /// 用户课程情况类
    /// </summary>
    /// Author：刘祖民
    /// CreateTime:2013-5-22

    [ActiveRecord]
    public class UserCourseSituation : ModelBase<UserCourseSituation>
    {
        /// <summary>
        /// 记录时间
        /// </summary>
        [Property]
        public DateTime Date { get; set; }


        //[Property]
        //public DateTime UpdateDate { get; set; }
        /// <summary>
        /// 教师
        /// </summary>
        [BelongsTo("UserID")]
        public User User { get; set; }

        [BelongsTo("CourseID")]
        public Course Course { get; set; }

        [HasMany(typeof(Situation), ColumnKey = "UserCourseSituationID")]
        public IList<Situation> Situations { get; set; }
    }
}
